package com.antu.first.dto;

import com.antu.first.bean.DiscountCoupon;
import com.antu.first.enums.DiscountCouponEnum;

import java.util.List;

/**
 * Created by Administrator on 2018/3/13.
 */
public class DiscountCouponExecution {

    private int state;

    private String stateInfo;

    private DiscountCoupon discountCoupon;

    private List<DiscountCoupon> discountCoupons;

    private int count;

    public DiscountCouponExecution(DiscountCouponEnum couponEnum) {
        this.state = couponEnum.getState();
        this.stateInfo = couponEnum.getStateInfo();
    }

    public DiscountCouponExecution(DiscountCouponEnum couponEnum, DiscountCoupon discountCoupon) {
        this.state = couponEnum.getState();
        this.stateInfo = couponEnum.getStateInfo();
        this.discountCoupon = discountCoupon;
    }

    public DiscountCouponExecution(DiscountCouponEnum couponEnum, List<DiscountCoupon> discountCoupons) {
        this.state = couponEnum.getState();
        this.stateInfo = couponEnum.getStateInfo();
        this.discountCoupons = discountCoupons;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public DiscountCoupon getDiscountCoupon() {
        return discountCoupon;
    }

    public void setDiscountCoupon(DiscountCoupon discountCoupon) {
        this.discountCoupon = discountCoupon;
    }

    public List<DiscountCoupon> getDiscountCoupons() {
        return discountCoupons;
    }

    public void setDiscountCoupons(List<DiscountCoupon> discountCoupons) {
        this.discountCoupons = discountCoupons;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
